package com.gitee.kamismile.stone.basic.data.domain.sysUser.repository.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.util.Objects;

@Table(name = "sys_user_setup")
public class SysUserSetup {
    @Id
    private Integer nUserSetupId;
    private Integer nUserId;
    private String sWallpaper;
    private String sWallpaperPosition;
    private String sWallpaperColor;
    private String sTheme;
    private Integer nMsgTime;
    private Integer nTenantId;

    public Integer getnUserSetupId() {
        return nUserSetupId;
    }

    public void setnUserSetupId(Integer nUserSetupId) {
        this.nUserSetupId = nUserSetupId;
    }

    public Integer getnUserId() {
        return nUserId;
    }

    public void setnUserId(Integer nUserId) {
        this.nUserId = nUserId;
    }

    public String getsWallpaper() {
        return sWallpaper;
    }

    public void setsWallpaper(String sWallpaper) {
        this.sWallpaper = sWallpaper;
    }

    public String getsWallpaperPosition() {
        return sWallpaperPosition;
    }

    public void setsWallpaperPosition(String sWallpaperPosition) {
        this.sWallpaperPosition = sWallpaperPosition;
    }

    public String getsWallpaperColor() {
        return sWallpaperColor;
    }

    public void setsWallpaperColor(String sWallpaperColor) {
        this.sWallpaperColor = sWallpaperColor;
    }

    public String getsTheme() {
        return sTheme;
    }

    public void setsTheme(String sTheme) {
        this.sTheme = sTheme;
    }

    public Integer getnMsgTime() {
        return nMsgTime;
    }

    public void setnMsgTime(Integer nMsgTime) {
        this.nMsgTime = nMsgTime;
    }

    public Integer getnTenantId() {
        return nTenantId;
    }

    public void setnTenantId(Integer nTenantId) {
        this.nTenantId = nTenantId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysUserSetup that = (SysUserSetup) o;
        return Objects.equals(nUserId, that.nUserId) && Objects.equals(sWallpaper, that.sWallpaper) && Objects.equals(sWallpaperPosition, that.sWallpaperPosition) && Objects.equals(sWallpaperColor, that.sWallpaperColor) && Objects.equals(sTheme, that.sTheme) && Objects.equals(nMsgTime, that.nMsgTime) && Objects.equals(nTenantId, that.nTenantId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(nUserId, sWallpaper, sWallpaperPosition, sWallpaperColor, sTheme, nMsgTime, nTenantId);
    }
}
